package com.megvii.koala.tv.data;

import com.megvii.corelib.data.BaseBean;

/**
 * Created by linyue on 16/3/16.
 */
public class CameraBean extends BaseBean
{
    public boolean allow_all_subjects;

    public boolean allow_visitor;

    public String box_address;

    public long box_heartbeat;

    public int box_status;

    public String box_token;

    public String camera_address;

    public String camera_name;

    public String camera_position;

    public int camera_status;

    public String description;

    public String network_switcher;

    public int network_switcher_status;

    public String screen_token;

    public int type;

    @Override
    public int hashCode()
    {
        return id != null ? id.hashCode() : 0;
    }

    @Override
    public boolean equals(Object o)
    {
        if (o == null || !(o instanceof CameraBean))
        {
            return false;
        }
        else
        {
            CameraBean compare = (CameraBean) o;
            if (this.id == null && compare.id == null)
            {
                return true;
            }
            else if (this.id != null)
            {
                return this.id.equals(compare.id);
            }
            else
            {
                return compare.id.equals(this.id);
            }
        }
    }
}
